package com.kingsoft.miot.bridge;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
/**
 * 应用启动程序
 * 
 * @author HUJIANQING
 *
 */
@SpringBootApplication
@EnableWebMvc
@EnableTransactionManagement
@MapperScan("com.kingsoft.miot.bridge.dao")
public class MiotBridgeApplication extends SpringBootServletInitializer {
	public static void main(String[] args) {
		SpringApplication.run(MiotBridgeApplication.class, args);
	}
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(MiotBridgeApplication.class);
	}
}
